/**
 * Copyright (c) 2019 xstgongyi.org
 * All rights reserved.
 */
package org.xstgongyi.eduaid.service;

import java.util.List;

import org.xstgongyi.eduaid.dataobject.ProjectPhaseDO;
import org.xstgongyi.eduaid.bo.ProjectPhaseStatus;
import org.xstgongyi.eduaid.dataobject.SemesterDO;

/**
 * @author oldcrane<br/>
 * @created 2019-04-03
 */
public interface ProjectPhaseService {

	List<ProjectPhaseDO> listByProject(Integer projectId);

	ProjectPhaseDO getById(Integer id);

	List<ProjectPhaseDO> list(Integer projectId, Integer semesterId, ProjectPhaseStatus status);

	void insert(Integer projectId, Integer semesterId);

	void updateStatus(Integer id, ProjectPhaseStatus status);

	/**
	 * 列出给出项目的、尚未被创建的助学阶段（学期）列表，供用户选择。被禁用的学期不显示。
	 */
	List<SemesterDO> listUncreatedSemesters(Integer projectId);

}
